const jwt = require('jsonwebtoken');
const { secretKey,expiresIn } = require('../config/config')

function generateToken (uid,scope){
  const token = jwt.sign({uid,scope},
    secretKey,{expiresIn})
    return token
}
module.exports = {
  generateToken
}